package org.robert.export_client.easyexcel.write.entity;

import com.robert.common.commonutil.util.UUIDUtils;

/**
 * ExcelResponse:
 *
 * @author zhaoshengtao
 * @date 2024/01/08
 */
public class ExcelResponse {

    private String uuid = UUIDUtils.getUUID();

    private String message;

    private String code = "success";

    private Long waitTime = 0L;

    public Long getWaitTime() {
        return waitTime;
    }

    public void setWaitTime(Long waitTime) {
        this.waitTime = waitTime;
    }

    public ExcelResponse(Long waitTime) {
        this.waitTime = waitTime;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public ExcelResponse() {
    }

    public ExcelResponse(String uuid) {
        this.uuid = uuid;
    }

    public ExcelResponse(String code, String message) {
        this.message = message;
        this.code = code;
    }

    public boolean isSuccess() {
        return "success".equals(code);
    }
}
